# -*- coding: utf-8 -*-
# ㊎ Author : XMZ
# ㊍ Time : 2021/10/18 11:19
# ㊌ File : formula -> schema_docs.py
# ㊋ IDE :  PyCharm
# ㊏
import os
import sys
import coreapi
import coreschema
from rest_framework.schemas import AutoSchema

HomeSchema = AutoSchema(manual_fields=[
    coreapi.Field(name="db", required=True, location="query", description="", type="", example="",
                  schema=coreschema.String(description="数据库host, normal或者sub", )
                  ),

    coreapi.Field(name="database", required=True, location="query", description="", example="", type="",
                  schema=coreschema.String(description="数据库"),
                  ),

    coreapi.Field(name="table", required=True, location="query", description="description", example="", type="",
                  schema=coreschema.String(description="数据库表"), )
],)
